package coding.unit11;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;

/**
 * @author Wang Renlei
 * @Date 2020/5/6
 */
public class AddingGroups {

    public static void main(String[] args) {
        Collection<Integer> collection = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5));
        Integer[] moreInts = {6, 7, 8, 9, 10};
        collection.addAll(Arrays.asList(moreInts));
        System.out.println(collection.toString());
        Collections.addAll(collection, 11, 12, 13, 14);
        System.out.println(collection.toString());
        Collections.addAll(collection, moreInts);
        System.out.println(collection.toString());


//        collection

    }


}
